package etnorservice.etnor_service.service;

import etnorservice.etnor_service.domain.po.ApiCategory;
import etnorservice.etnor_service.domain.po.BaseArticle;
import etnorservice.etnor_service.domain.po.DocumentVO;
import etnorservice.etnor_service.domain.response.CreateBlogParmResponse;
import etnorservice.etnor_service.domain.vo.ArticleVO;
import etnorservice.etnor_service.request.BlogCreateRequest;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/10/14/17:27
 **/
public interface ArticleService {
    public List<ArticleVO> articleList();
    public ArticleVO findArticleById(String articleId,String language);
    public void saveArticle(String title, String content,String language) throws IOException;
    public List<ArticleVO> findArticleByIdAndAccount(String authorId,String spaceId);
    //获取博客创建前的基础参数
    public CreateBlogParmResponse findBaseParams(String accountId);
    //新增博客
    public void addBlogs(BlogCreateRequest blogCreateRequest);

    //文档访问接口，外部唯一入口
    public DocumentVO getArticle(String articleId,String language);


}
